home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
xarchie-2.0.9
/
FWF
/
Dir
/
Makefile.dst
< prev
next >
Wrap
Makefile
|
1995-06-18
|
1KB
|
43 lines
# This Makefile is for use with FileSelector if you don't have imake/xmkmf.
RM = rm -f
AR = ar clq
RANLIB = ranlib
# These should be set in the master Makefile
XINCS = -I/usr/local/include
CDEBUGFLAGS = -g
OBJS = Directory.o DirMgr.o RegExp.o
INCLUDES = -I.
CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(XINCS)
libDir.a: first $(OBJS)
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $(@)
first:
@rm -f dirent.h
@(if [ ! -f /usr/include/dirent.h ]; \
then echo "Patching because no dirent.h"; \
echo "#ifndef _BRIDIRENT_H_" > dirent.h; \
echo "#define _BRIDIRENT_H_" >> dirent.h; \
echo "#define dirent direct" >> dirent.h; \
echo "#include <sys/dir.h>" >> dirent.h; \
echo "#endif" >> dirent.h; \
else echo ""; \
fi; exit 0)
@rm -f regexp.h
@(if [ ! -f /usr/include/regexp.h ]; \
then echo "Patching because no regexp.h"; \
echo "#ifndef _BRIREGEXP_H_" > regexp.h; \
echo "#define _BRIREGEXP_H_" >> regexp.h; \
echo "#define NO_REGEXP 1" >> regexp.h; \
echo "#endif" >> regexp.h; \
else echo ""; \
fi; exit 0)
clean:
$(RM) libDir.a $(OBJS)